<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BLP2.0: CI_Session Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BLP2.0
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">CI_Session Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a568ecdb0d73d2a870f33189739922a50"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a568ecdb0d73d2a870f33189739922a50">__construct</a> ($params=array())</td></tr>
<tr class="memitem:ae5ba2069165f9af1c729d0573137d95a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#ae5ba2069165f9af1c729d0573137d95a">sess_read</a> ()</td></tr>
<tr class="memitem:acd5ba33f5ff68a7c9ee9d1d8f0d8a237"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#acd5ba33f5ff68a7c9ee9d1d8f0d8a237">sess_write</a> ()</td></tr>
<tr class="memitem:af210b7940693f8bbe707c5e3051f2e6c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#af210b7940693f8bbe707c5e3051f2e6c">sess_create</a> ()</td></tr>
<tr class="memitem:a333d608511ddfdee6717a8d474ff111f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a333d608511ddfdee6717a8d474ff111f">sess_update</a> ()</td></tr>
<tr class="memitem:a9451d1625c402b8d712aedaa5ebc752d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a9451d1625c402b8d712aedaa5ebc752d">sess_destroy</a> ()</td></tr>
<tr class="memitem:a234cc3c1e955a6da95092107cb2a8ac6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a234cc3c1e955a6da95092107cb2a8ac6">userdata</a> ($item)</td></tr>
<tr class="memitem:a974fa60ddc074b14ffcc78ef9902bc5c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a974fa60ddc074b14ffcc78ef9902bc5c">all_userdata</a> ()</td></tr>
<tr class="memitem:aa2116dc78b715fb8f5f7234deba8cf79"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#aa2116dc78b715fb8f5f7234deba8cf79">set_userdata</a> ($newdata=array(), $newval= '')</td></tr>
<tr class="memitem:a57e126e7c8c9081641cf7642cb7e0e83"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a57e126e7c8c9081641cf7642cb7e0e83">unset_userdata</a> ($newdata=array())</td></tr>
<tr class="memitem:a00227f8b40e21cce8905a9ae7b73e151"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a00227f8b40e21cce8905a9ae7b73e151">set_flashdata</a> ($newdata=array(), $newval= '')</td></tr>
<tr class="memitem:a1e25514ba8dbd132db06cbedc6412158"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a1e25514ba8dbd132db06cbedc6412158">keep_flashdata</a> ($key)</td></tr>
<tr class="memitem:a6a8a92e8b35ab1ba980f64d8d0af298b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a6a8a92e8b35ab1ba980f64d8d0af298b">flashdata</a> ($key)</td></tr>
<tr class="memitem:add8c0608531c88bf75a9b2e82341163e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#add8c0608531c88bf75a9b2e82341163e">_flashdata_mark</a> ()</td></tr>
<tr class="memitem:a4f5465cfc2f0dae836bfcc489d96d33e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a4f5465cfc2f0dae836bfcc489d96d33e">_flashdata_sweep</a> ()</td></tr>
<tr class="memitem:a8593101bdc7969d31743d6d432dad908"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a8593101bdc7969d31743d6d432dad908">_get_time</a> ()</td></tr>
<tr class="memitem:a28a4132f8380d6426f83c0aaeaa3c3f0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a28a4132f8380d6426f83c0aaeaa3c3f0">_set_cookie</a> ($cookie_data=NULL)</td></tr>
<tr class="memitem:a0adebf4d7ba21c19cba8c90e8319bf3a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a0adebf4d7ba21c19cba8c90e8319bf3a">_serialize</a> ($data)</td></tr>
<tr class="memitem:ae7f6b0450269815736585abc087fee7b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#ae7f6b0450269815736585abc087fee7b">_unserialize</a> ($data)</td></tr>
<tr class="memitem:acda34aabaf23a1a90ef8cc1711a92078"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#acda34aabaf23a1a90ef8cc1711a92078">_sess_gc</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a6d32af5e9bd9b9105ae0820ed8a09495"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a6d32af5e9bd9b9105ae0820ed8a09495">$sess_encrypt_cookie</a> = FALSE</td></tr>
<tr class="memitem:a98c035e4010a1f494b146d950d7f41a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a98c035e4010a1f494b146d950d7f41a3">$sess_use_database</a> = FALSE</td></tr>
<tr class="memitem:ac02cd771521df3c8c52675a63097cf8f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#ac02cd771521df3c8c52675a63097cf8f">$sess_table_name</a> = ''</td></tr>
<tr class="memitem:a3ef0fc3196a5fc8415939b69d158a488"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a3ef0fc3196a5fc8415939b69d158a488">$sess_expiration</a> = 7200</td></tr>
<tr class="memitem:abd220b00e9d36c1e3296f9ddef681f01"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#abd220b00e9d36c1e3296f9ddef681f01">$sess_expire_on_close</a> = FALSE</td></tr>
<tr class="memitem:ac87480ccf2a450d6ef69dead9c7b01bb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#ac87480ccf2a450d6ef69dead9c7b01bb">$sess_match_ip</a> = FALSE</td></tr>
<tr class="memitem:a2026f3075cd8256329189662923c1f34"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a2026f3075cd8256329189662923c1f34">$sess_match_useragent</a> = TRUE</td></tr>
<tr class="memitem:a7e2872972d8eef9294738fd18e054fbb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a7e2872972d8eef9294738fd18e054fbb">$sess_cookie_name</a> = 'ci_session'</td></tr>
<tr class="memitem:ada115919bde6b8248b4326b5fbd8a618"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#ada115919bde6b8248b4326b5fbd8a618">$cookie_prefix</a> = ''</td></tr>
<tr class="memitem:a306f5cca27534399088154892069210c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a306f5cca27534399088154892069210c">$cookie_path</a> = ''</td></tr>
<tr class="memitem:abec6ae06ad5526172520fb1ccb7c6806"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#abec6ae06ad5526172520fb1ccb7c6806">$cookie_domain</a> = ''</td></tr>
<tr class="memitem:a34b1dc25271af52f269a649392ce8d43"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a34b1dc25271af52f269a649392ce8d43">$cookie_secure</a> = FALSE</td></tr>
<tr class="memitem:aa1487c597a0e2b1d804802a75878dd8f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#aa1487c597a0e2b1d804802a75878dd8f">$sess_time_to_update</a> = 300</td></tr>
<tr class="memitem:a35bbf76a5bcca90ca9b39368ed28121c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a35bbf76a5bcca90ca9b39368ed28121c">$encryption_key</a> = ''</td></tr>
<tr class="memitem:afaa74f7303193b2ca2452540c3fd45ff"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#afaa74f7303193b2ca2452540c3fd45ff">$flashdata_key</a> = 'flash'</td></tr>
<tr class="memitem:ae76ac08d6f71ee519ff2f723489edbad"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#ae76ac08d6f71ee519ff2f723489edbad">$time_reference</a> = 'time'</td></tr>
<tr class="memitem:a96b09cc763572f45280786a7b33feb7e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#a96b09cc763572f45280786a7b33feb7e">$gc_probability</a> = 5</td></tr>
<tr class="memitem:af70e594e86a310311c717b13e6ecac00"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#af70e594e86a310311c717b13e6ecac00">$userdata</a> = array()</td></tr>
<tr class="memitem:ae0314d046ddf7fcfaec03222977427d3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#ae0314d046ddf7fcfaec03222977427d3">$CI</a></td></tr>
<tr class="memitem:af1d5ccdee975b8f4d20aaffc5b28557c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___session.html#af1d5ccdee975b8f4d20aaffc5b28557c">$now</a></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a568ecdb0d73d2a870f33189739922a50"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a568ecdb0d73d2a870f33189739922a50">__construct</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>params</em> = <code>array()</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Session Constructor</p>
<p>The constructor runs the session routines automatically whenever the class is instantiated. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="add8c0608531c88bf75a9b2e82341163e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#add8c0608531c88bf75a9b2e82341163e">_flashdata_mark</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Identifies flashdata as 'old' for removal when <a class="el" href="class_c_i___session.html#a4f5465cfc2f0dae836bfcc489d96d33e">_flashdata_sweep()</a> runs.</p>
<p>private </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a4f5465cfc2f0dae836bfcc489d96d33e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a4f5465cfc2f0dae836bfcc489d96d33e">_flashdata_sweep</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Removes all flashdata marked as 'old'</p>
<p>private </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a8593101bdc7969d31743d6d432dad908"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a8593101bdc7969d31743d6d432dad908">_get_time</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the "now" time</p>
<p>private </p>
<dl class="section return"><dt>Returns:</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a0adebf4d7ba21c19cba8c90e8319bf3a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a0adebf4d7ba21c19cba8c90e8319bf3a">_serialize</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Serialize an array</p>
<p>This function first converts any slashes found in the array to a temporary marker, so when it gets unserialized the slashes will be preserved</p>
<p>private </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">array</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="acda34aabaf23a1a90ef8cc1711a92078"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#acda34aabaf23a1a90ef8cc1711a92078">_sess_gc</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Garbage collection</p>
<p>This deletes expired session rows from database if the probability percentage is met</p>
<p>public </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a28a4132f8380d6426f83c0aaeaa3c3f0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a28a4132f8380d6426f83c0aaeaa3c3f0">_set_cookie</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>cookie_data</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Write the session cookie</p>
<p>public </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="ae7f6b0450269815736585abc087fee7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#ae7f6b0450269815736585abc087fee7b">_unserialize</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Unserialize</p>
<p>This function unserializes a data string, then converts any temporary slash markers back to actual slashes</p>
<p>private </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">array</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a974fa60ddc074b14ffcc78ef9902bc5c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a974fa60ddc074b14ffcc78ef9902bc5c">all_userdata</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch all session data</p>
<p>public </p>
<dl class="section return"><dt>Returns:</dt><dd>array </dd></dl>

</div>
</div>
<a class="anchor" id="a6a8a92e8b35ab1ba980f64d8d0af298b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a6a8a92e8b35ab1ba980f64d8d0af298b">flashdata</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch a specific flashdata item from the session array</p>
<p>public </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a1e25514ba8dbd132db06cbedc6412158"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a1e25514ba8dbd132db06cbedc6412158">keep_flashdata</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Keeps existing flashdata available to next request.</p>
<p>public </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="af210b7940693f8bbe707c5e3051f2e6c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#af210b7940693f8bbe707c5e3051f2e6c">sess_create</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new session</p>
<p>public </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a9451d1625c402b8d712aedaa5ebc752d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a9451d1625c402b8d712aedaa5ebc752d">sess_destroy</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destroy the current session</p>
<p>public </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="ae5ba2069165f9af1c729d0573137d95a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#ae5ba2069165f9af1c729d0573137d95a">sess_read</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch the current session data if it exists</p>
<p>public </p>
<dl class="section return"><dt>Returns:</dt><dd>bool </dd></dl>

</div>
</div>
<a class="anchor" id="a333d608511ddfdee6717a8d474ff111f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a333d608511ddfdee6717a8d474ff111f">sess_update</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update an existing session</p>
<p>public </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="acd5ba33f5ff68a7c9ee9d1d8f0d8a237"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#acd5ba33f5ff68a7c9ee9d1d8f0d8a237">sess_write</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Write the session data</p>
<p>public </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a00227f8b40e21cce8905a9ae7b73e151"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a00227f8b40e21cce8905a9ae7b73e151">set_flashdata</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>newdata</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>newval</em> = <code>''</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add or change flashdata, only available until the next request</p>
<p>public </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mixed</td><td></td></tr>
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="aa2116dc78b715fb8f5f7234deba8cf79"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#aa2116dc78b715fb8f5f7234deba8cf79">set_userdata</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>newdata</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>newval</em> = <code>''</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add or change data in the "userdata" array</p>
<p>public </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mixed</td><td></td></tr>
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a57e126e7c8c9081641cf7642cb7e0e83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a57e126e7c8c9081641cf7642cb7e0e83">unset_userdata</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>newdata</em> = <code>array()</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Delete a session variable from the "userdata" array</p>
<p>array </p>
<dl class="section return"><dt>Returns:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a234cc3c1e955a6da95092107cb2a8ac6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_i___session.html#a234cc3c1e955a6da95092107cb2a8ac6">userdata</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch a specific item from the session array</p>
<p>public </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>string </dd></dl>

</div>
</div>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="ae0314d046ddf7fcfaec03222977427d3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$CI</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abec6ae06ad5526172520fb1ccb7c6806"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$cookie_domain = ''</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a306f5cca27534399088154892069210c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$cookie_path = ''</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ada115919bde6b8248b4326b5fbd8a618"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$cookie_prefix = ''</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a34b1dc25271af52f269a649392ce8d43"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$cookie_secure = FALSE</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a35bbf76a5bcca90ca9b39368ed28121c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$encryption_key = ''</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afaa74f7303193b2ca2452540c3fd45ff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$flashdata_key = 'flash'</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a96b09cc763572f45280786a7b33feb7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$gc_probability = 5</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af1d5ccdee975b8f4d20aaffc5b28557c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$now</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7e2872972d8eef9294738fd18e054fbb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_cookie_name = 'ci_session'</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6d32af5e9bd9b9105ae0820ed8a09495"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_encrypt_cookie = FALSE</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3ef0fc3196a5fc8415939b69d158a488"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_expiration = 7200</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abd220b00e9d36c1e3296f9ddef681f01"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_expire_on_close = FALSE</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac87480ccf2a450d6ef69dead9c7b01bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_match_ip = FALSE</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2026f3075cd8256329189662923c1f34"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_match_useragent = TRUE</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac02cd771521df3c8c52675a63097cf8f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_table_name = ''</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa1487c597a0e2b1d804802a75878dd8f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_time_to_update = 300</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a98c035e4010a1f494b146d950d7f41a3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$sess_use_database = FALSE</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae76ac08d6f71ee519ff2f723489edbad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$time_reference = 'time'</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af70e594e86a310311c717b13e6ecac00"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$<a class="el" href="class_c_i___session.html#a234cc3c1e955a6da95092107cb2a8ac6">userdata</a> = array()</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Applications/MAMP/htdocs/Workspace/blp2.0/system/libraries/<a class="el" href="_session_8php.html">Session.php</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Wed Mar 14 2012 15:49:56 for BLP2.0 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
